package com.example.administrator.myapplication.body;

import android.app.Dialog;
import android.app.FragmentManager;
import android.app.FragmentTransaction;
import android.content.DialogInterface;
import android.support.v7.app.AlertDialog;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import android.widget.NumberPicker;

import com.example.administrator.myapplication.R;


public class bodyActivity extends AppCompatActivity {
    private int numSaver;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_body);
        getBodyMainFragment();
    }

    public void getBodyMainFragment (){
        body_main_Fragment bodyMainFragment = new body_main_Fragment();
        FragmentManager fm = this.getFragmentManager();            //设置fragment管理器
        FragmentTransaction ft = fm.beginTransaction();
        ft.replace(R.id.fragment_body, bodyMainFragment);      //替换当前的fragment
        ft.commit();
    }
}
